package ysc.cqnu.operdb.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.*;
import ysc.cqnu.operdb.entity.ResultData;
import ysc.cqnu.operdb.serviceImpl.CheckDrawingInfoServiceImpl;

@CrossOrigin
@Controller
@ResponseBody
public class CheckDrawingInfoController {
    @Autowired
    private ResultData resultData;
    @Autowired
    private CheckDrawingInfoServiceImpl checkDrawingInfoService;
    @RequestMapping(value = "/checkdrawingInfo",method = RequestMethod.GET)
    public ResultData checkdrawingInfo(@RequestParam("huagaoInput") String huagaoInput,@RequestParam("renwu") String renwu,@RequestParam("yongtu") String yongtu,@RequestParam("juti") String juti,@RequestParam("riqiInput") String riqiInput,@RequestParam("shangchuanrenInput") String shangchuanrenInput){
        System.out.println("查看画图信息前端连接");
        resultData=checkDrawingInfoService.checkDrawingInfoService(huagaoInput,renwu,yongtu,juti,shangchuanrenInput,riqiInput);
        return resultData;
    }
}
